<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('order/index')}">实时订单列表</a></li>
			<li ><a href="{:url('order/importview')}">导入物流订单</a></li>
			<li  style="display: none;"><a href="{:url('order/add')}">添加实时订单</a></li>
			<li ><a href="{:url('order/datashow')}">邮件发送详情</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('order/index')}">
            买家邮箱:
            <input type="text" class="form-control" name="useremail" style="width: 120px;" value="{:input('request.useremail/s','')}" placeholder="请输入买家邮箱">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('order/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>用户邮箱</th>
					<th>姓名</th>
					<th>订单号</th>
					<th>站点信息</th>
					<th>包裹号</th>
					<th>物流追踪号</th>
					<th>站点邮箱</th>
					<th>状态</th>
					<th>创建时间</th>
					<th>更新时间</th>
					
					<th>{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="orderList" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.useremail}</td>
					<td>{$vo.username}</td>
					<td>{$vo.orderid}</td>
					<td>{$vo.logwebsite}</td>
					<td>{$vo.logpakename}</td>
					<td>{$vo.logsendway}</td>
					<td>{$vo.websitemail}</td>
					<td style="color:<?php echo ($vo['status']==0)? 'red':'green';?>">{$status=($vo['status'] == 0)?"未处理":"已处理";}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.update_time}</td>
					
					<td>
						<a href='{:url("order/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a href="{:url('order/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
